/**
 * 影片类
 * 包含影片的基本信息，如ID、名称、导演、主演、剧情简介、时长和评分
 */
public class Movie {
    private String id;          // 影片唯一ID
    private String name;        // 影片名称
    private String director;    // 导演
    private String actor;       // 主演
    private String intro;       // 剧情简介
    private int duration;       // 时长（分钟）
    private double score;       // 评分（0-10分）

    // 构造方法：初始化影片信息
    public Movie(String id, String name, String director, String actor, String intro, int duration, double score) {
        this.id = id;
        this.name = name;
        this.director = director;
        this.actor = actor;
        this.intro = intro;
        this.duration = duration;
        this.score = score;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getDirector() {
        return director;
    }

    public String getActor() {
        return actor;
    }

    public String getIntro() {
        return intro;
    }

    public int getDuration() {
        return duration;
    }

    public double getScore() {
        return score;
    }
}
